package com.ncdnapp.core.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: chenbin
 * @Description:
 * @Date: create in 2021/7/30 10:39
 */
@Getter
@AllArgsConstructor
public enum ResultEnum {
    SUCCESS("00000", "成功"),
    SERVICE_ERR("10000", "服务内部异常"),
    REQUEST_PARAM_PARSE_ERR("10001", "参数解析错误"),
    REQUEST_PARAM_PARSE_FAIL("10002", "参数解析失败"),
    REQUEST_PARAM_CAN_NOT_EMPTY("10003", "必要参数不能为空"),
    REQUEST_METHOD_NOT_ALLOW("10004", "不支持当前请求方法"),
    REQUEST_MEDIA_NOT_ALLOW("10005", "不支持当前媒体类型"),
    DATA_PARSE_ERROR("10006", "数据解析错误"),
    EXCEL_DATA_TYPE_ERR("10007", "数据格式错误"),
    LOCk_HANDLER_NOT_EXSITIS("10008", "锁处理器不存在"),
    EVENTBUS_HANDLER_NOT_EXSITIS("10009", "事件总线处理器不存在"),
    CONTROLLER_NOT_FIND("10010", "404 not find"),
    CMD_EXEC_ERROR("10011", "cmd命令执行发生异常"),
    HTTP_CLIENT_REQUEST_ERR("10012", "http客户端请求发生异常"),
    HTTP_CLIENT_PARSE_PARAM_ERR("10013", "http客户端请求发生异常,解析参数错误"),
    IMG_SIZE_IS_LARG("10014", "图片尺寸太大了,不能超过5M"),
    IMG_TYPE_ERR("10015", "图片类型不被允许,只支持(jpg,bmp,png,gif)"),
    SMS_SEND_ERROR("10016", "短信发送失败"),
    VOICE_SEND_ERROR("10017", "语音发送失败"),
    MTL_PO_CAN_NOT_INSERT_BATCH("10018", "多语言表不能批量写入"),
    NO_PERMISSON("10019", "无权操作"),
    AUTH_OUT_TIME("10020", "未认证或认证超时"),
    FILE_NOT_EXIST("10021", "文件不存在"),
    AUTH_CODE_ERR("10022", "授权码错误"),
    LOAD_HISTORY_INTERVER_DATA_TIME_OUT("10023", "获取历史数据超时"),
    LOAD_HISTORY_INTERVER_DATA_INTERUPT("10024", "获取历史数据被中断"),
    DATE_START_NEED_EQUAL_END("10025", "开始日期和结束日期需一样"),
    ;
    private String code;
    private String msg;
}
